package com.aia.prm.web.ria.app.ui.qnbe;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.aia.prm.domain.Qnbe;
import com.vaadin.data.util.BeanItemContainer;

@SuppressWarnings("serial")
public class QnbeContainer extends BeanItemContainer<Qnbe> implements Serializable {
	public static final Object[] NATURAL_COL_ORDER = new Object[] { "QNXE_GUID", "QNXE_ADRESS", "QNXE_BASE", "QNXE_BIRTH", "QNXE_NAME",
			"QNXE_PHO", "QNXE_SEX", "QNXE_UNICA_FLAG", "QNXE_UNICA_CODE", "QNXE_UNICA_REMARK", "QNXE_DATE", "QNXE_TIME" };

	public static final String[] COL_HEADERS_SHOW = new String[] { "记录ID", "地址", "保障需求", "生日", "名字", "手机号", "性别", "发送成功?", "发送状态码",
			"发送状态描述", "日期", "时间" };

	public static final Object[] NATURAL_COL_ORDER_FORM = new Object[] { "QNXE_GUID", "QNXE_ADRESS", "QNXE_BASE", "QNXE_NAME", "QNXE_PHO",
			"QNXE_SEX", "QNXE_DATE", "QNXE_TIME", "QNXE_UNICA_FLAG", "QNXE_UNICA_CODE", "QNXE_UNICA_REMARK", "QNXE_AGENTTYPE" };

	public static final Map<String, String> FIELD_NAME_MAP = new HashMap<String, String>();

	static {
		FIELD_NAME_MAP.put("QNXE_GUID", "记录ID");
		FIELD_NAME_MAP.put("QNXE_ADRESS", "地址");
		FIELD_NAME_MAP.put("QNXE_BASE", "保障需求");
		FIELD_NAME_MAP.put("QNXE_BIRTH", "生日");
		FIELD_NAME_MAP.put("QNXE_NAME", "姓名");
		FIELD_NAME_MAP.put("QNXE_PHO", "手机号");
		FIELD_NAME_MAP.put("QNXE_SEX", "性别");
		FIELD_NAME_MAP.put("QNXE_DATE", "日期");
		FIELD_NAME_MAP.put("QNXE_TIME", "时间");
		FIELD_NAME_MAP.put("QNXE_UNICA_FLAG", "发送接口成功");
		FIELD_NAME_MAP.put("QNXE_UNICA_CODE", "状态码");
		FIELD_NAME_MAP.put("QNXE_UNICA_REMARK", "失败原因");
		FIELD_NAME_MAP.put("QNXE_AGENTTYPE", "营销员类型");
	}

	public QnbeContainer() throws InstantiationException, IllegalAccessException {
		super(Qnbe.class);
	}
}